package com.itheima.server.mapper;

import com.itheima.server.domain.Activite;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

/**
* @author li
* @description 针对表【hk_activite(促销活动表)】的数据库操作Mapper
* @createDate 2025-09-04 20:39:41
* @Entity com.itheima.server.domain.HkActivite
*/
@Mapper
public interface ActiviteMapper extends BaseMapper<Activite> {


    @Update("update hk_activite set code = #{code}, name = #{name}, channel = #{channel},info = #{info},type = #{type}, " +
            " discount = #{discount},vouchers = #{vouchers},status = #{status},begin_time = #{beginTime},end_time = #{endTime}," +
            " create_by = #{createBy}, create_time = #{createTime}, update_time = #{updateTime}, update_by = #{updateBy} where id = #{id} " )
    Boolean updateActivite(Activite activite);
}




